<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2025/6/12
  Time: 22:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园论坛 - 忘记密码</title>
    <link rel="stylesheet" type="text/css" href="css/retrieve_password.css">
</head>
<body>
<div class="container">
    <h2>找回密码</h2>
    <form id="forgotPasswordForm">
        <div class="form-group">
            <label for="username">账号</label>
            <input type="text" id="username" name="username" placeholder="请输入您的账号" required>
            <div id="usernameError" class="error-message"></div>
        </div>

        <div class="form-group">
            <label for="nickname">昵称</label>
            <input type="text" id="nickname" name="nickname" placeholder="请输入您的昵称" required>
            <div id="nicknameError" class="error-message"></div>
        </div>

        <div class="form-group">
            <label for="captcha">验证码</label>
            <div class="captcha-container">
                <input type="text" id="captcha" name="captcha" class="captcha-input" placeholder="请输入验证码" required>
                <div id="captchaImg" class="captcha-img">A7B9</div>
            </div>
            <div id="captchaError" class="error-message"></div>
        </div>

        <div class="form-group">
            <label for="newPassword">新密码</label>
            <input type="password" id="newPassword" name="newPassword" placeholder="请输入新密码" required>
            <div id="passwordError" class="error-message"></div>
        </div>

        <div class="form-group">
            <label for="confirmPassword">确认密码</label>
            <input type="password" id="confirmPassword" name="confirmPassword" placeholder="请再次输入新密码" required>
            <div id="confirmError" class="error-message"></div>
        </div>

        <button type="submit" class="btn">确定</button>
    </form>

    <div class="login-link">
        想起密码了？<a href="forum_login.jsp">立即登录</a>
    </div>
</div>

<script src="./js/retrieve_password.js"></script>
</body>
</html>
